package com.yulinlin.admin.modules.i18.controller;

import com.yulinlin.common.controller.SuperController;
import com.yulinlin.common.domain.ResponseVo;
import io.swagger.annotations.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;

import com.yulinlin.admin.modules.i18.domain.I18ViewEntity;

import com.yulinlin.admin.modules.i18.service.II18ViewService;
import com.yulinlin.admin.modules.i18.domain.config.I18ViewConfig;
import com.yulinlin.admin.modules.i18.domain.page.I18ViewPage;

@Api(tags = "模版实例")
@RestController
@RequestMapping("i18/i18View")
public class I18ViewController extends SuperController<I18ViewEntity,I18ViewPage>  {


    @Autowired
    private II18ViewService service;

    @ApiOperation("获取配置数据")
    @RequestMapping(value = "config",method = RequestMethod.POST)
    public ResponseVo<I18ViewConfig> config() {
        I18ViewConfig config =I18ViewConfig.newInstance();
        return ResponseVo.newInstance(config);
    }


}
